You need to pop the valve cover off and look at the condition of the gear teeth. Rounded, or sharp means you need to replace. Flat means you could get away with not replacing them. Although there are others who will tell you that you should replace everything.
The rails can fool you, they can "look" very good, but they will be brittle after all these years and fall apart soon after you do the job. The wear material on the rails should be slightly rubbery feeling, and should give a little when you push your fingernail into it.
Replacing everything is probably the best long term fix, and the gears are not terribly expensive in the overall financial outlay for the job. I guess it comes down to how long you plan on keeping the car, and how deep are your pockets.
I have seen new cam gears for $12ea on e-bay.