Gamma-Ray Pulsars and Massive Stars in the Solar Neighborhood