For the pirates it would be 'yo ho ho and a bottle of rum'. Not sure of the origin, perhaps an old movie. And for the rappers, yo is used in rap songs a lot and is used in a similar way to 'hey' in everyday conversation. A means to get someones attention