The best race would be either a halfling or a half-elf if you really want to optimize, because ranger already gives you access to all weapon/armor proficiencies and those on the other DEX races are wasted. Choosing a halfling eliminates your critical misses and half-elf gets more total attributes and is immune to sleep and has a subracial bonus. I guess a deep gnome could work too with their strong saving throws.