"Yo!" is a word that you can use to get someone's attention.
Yo! Watch where you're going! You almost ran over that dog!
You can also say "Yo" in the middle of a conversation if you want someone to pay closer attention.
Yo, let me ask you something: do you think that we should be worried about Greta?
It's very casual, and some people consider it slang.