Inside the margin? I thought that last name and page number go in the upper right hand corner. Either way, you can just goto
View > Headers and Footers
Then whatever you write in the header or footer will show up on every page. Just toss in the auto page number field and you're set.