This can mean, "Go on, get out of here!" .. "go do what you need to do!" ... "don't bother me"
It can be slightly rude, but in your context it was probably a way of playing with the word which wouldn't necessarily be rude if it is used with close friends.