In C++11, you could use scoped enumerations:
foo(output::yes, formatted::no, debug::yes);
(If you're stuck in the past, you can do something similar, but less elegant, with regular enumerations).
There's also the old-school method of combining single-bit flag values:
enum {
output = 1 << 0,
formatted = 1 << 1,
debug = 1 << 2
};
foo(output | debug);