I don't know about you guys but the rangers was always clear to me.
The ranger jumps out of the bushes of the shadow he was hiding in and carves some poor sap up with a longsword, axe, bow or spear. Depending on the edition, he or she might entangle the foe first, buff themselves up with longstrider or cat's grace, or go full aggro since they have cure light wounds.
Ever since 1st edition, rangers were the guys who didn't get surpised and ambushed the heck out of the enemy then shoved a blade or arrow into it's back.
DM: You see a hobgoblin. He..
Me: I jump out the bushes I was hiding in.
DM: Why are you always jumping out of the brushes or shadow or out of a tree or a shadow of a bush or tree.
Me: Because I'm a ranger.
DM: Why not be a rogue/thief?
Me: Because I don't plan on fleeing like a wuss if the hobgoblin doesn't die in one hit or if I miss. *rolls initiative* 19. Am I first?