See a man about a dog
To see a man about a dog, horse or duck is an idiom, especially British English, of apology for one's imminent departure or absence, generally to euphemistically conceal one's true purpose, such as going to use the toilet or going to buy an alcoholic drink. The original non-facetious meaning was probably to place or settle a bet on a race, perhaps accompanied by a wink.