The American Heritage® Dictionary of the English Language: Fourth Edition. 2000.
son of a gun
NOUN:
Inflected forms: pl. sons of guns 1.Informal A person; a fellow: That son of a gun knows how to sell cars and sell them well.2. A rascal; a scamp: That son of gun is always playing practical jokes.
INTERJECTION:
Used to express annoyance, disappointment, or surprise.