What does ‘See A Man About a Dog’ mean?

See A Man About a Dog: what you say as an excuse for leaving, in order to hide your destination; also, to excuse oneself to take a giant shit.