Reposted by @squeakychee.bsky.social

File > Preferences > Canvas > Display Resolution > Settings
Get a ruler, line it up as best you can with the slider, and voila! Now you can go to View > Print Size for any piece that has a measurement (in, cm, mm, etc) and DPI set to view (and work on!) the piece at the size it will print at!