I trust that you have adequate gluing skills. You will need some super glue and two 18x3mm neodymium magnets.
The magnets are glued into their cozy little beds in the bottom. The top is glued to the bottom and the nut is glued into the hole in the top.
One end of the nut is shorter than the other, I had intended for the nut to be flush with the underside of the top when glued in.
I broke the model up to make it easy to print without support. In my first version, the threads were too thin and were easily stripped, so I made them fatter and added a nut so that there would be a greater thickness for the threads. This kept the lid from having to be too thick.
Let the glue dry. Insert a pad of paper and screw in the bolt to hold the paper in place. Do not glue the holder to the refrigerator.
Depending on your printer tolerances, printer settings and filament, the nut and bolt could be tight. Twist it on and off a few times to loosen it all up a bit.