Just multiply the size you want the render to be (in inches) by 300, and set the resolution to that number. So, for example, if you wanted to make a 6" x 6" render at 300dpi, you would set the resolution to 1800 x 1800 pixels. That should work, right?