Apple does offer an iPhoto add-on called Impression that allows you to do so. This watermark can be a barcode, a logo, or text. Watermarks are useful if you wish to keep your digital images from being stolen on the Internet or used without your permission.
Visit Apple store and look for Impression app. Download the program and install it.

