You want to creat a new layer than grab the rectangular marquee tool( I know spelling is wrong). Then go around the whole edge of the canvas with it, and then go to edit>stroke. Make sure you have the px at 1 and the "outside" option selected.