Put on your cycling shoes and find out where the ball of your foot is. Make a mark across the sole of the shoe at this point. Your cleat should be centered on this axis. Some cleats are marked to make it easier to do this. Once you've established the fore-and-aft position you can futz with the amount heel-in or heel-out you need.