Grid placement - basic question

OK this is a VERY basic question but it’s frustrated me for some time.

What is the best way to put a grid the dimensions of the grid in the editor over an image I have as a jpeg on my computer?

thanks in advance

Dave