Compile with a header? Possible?

Hopefully I’m just being amazingly stupid, but I do not see how to add a header to a compiled document. Ideally I’d like some common text on the right of the header and the page number on the left. Is this possible?