An American used this phrase a while back and I've heard it in songs before, like so:

Where's that dog-gone boy?

Any ideas where/why this mock profanity might have developed?