Since the 1420 this word has been used as a warning. Or heads up among sailors and the like "Yo there! Whales!"

The modern meaning seems to be fairly similar, though less alarming " Yo what's up?" Yo is used to get the attention of another person.