Well, "don't do it" is my first, second and third response... :-)
But if you're determined, use a paint marker, like metal workers do. It looks like a magic marker but contains enamel paint (I think) and should be plenty durable.
(I do think autographed guitars look abused and ugly, though.)