This is an S-hook that fits around a 27mm diameter bar. Print it in a flexible enough plastic (like ABS) so that it can be pulled apart just enough to fit over the bar, which it will then close around so that it doesn't fall off.
See http://www.chrisfinke.com/2014/12/09/3d-printed-oven-handle-hooks/