It's probably not so much dialectal as base, although I think it comes from a blue-collar Tokyo dialect from the mid-20th century. That last part could be wrong, since I'm going from memory of something I read a while ago, but it's definitely not something that would be considered polite, although 孫悟空 (of ドラゴンボール, not 西遊記) managed to get away with it. I'm not sure you want to model your speech after him, though. It's a pretty base and crass way of speaking.