What are medicines/vitamine recomended for men planing about have a baby? How long it should be taken prior to the planed time?

Be healthy. I don't think there's any specific vitamin to optimize fertility. If you want to make sure your daily vitamin needs are met, you can take a daily multivitamin. Otherwise, eat and be healthy. Good luck!