Perhaps the return from the lua get_dofinfo() could be written out to the comment field in the EXIF dat
We don't currently have an easy way to modify jpeg exif. You can do it after the shot with Lua file IO, it is fairly complicated. However, it is easy to make an external log with images numbers that you can match up later.
There is a standard formula for this but it requires the size of the post-it note as it is projected on the image sensor.
As waterwingz says, the real question is how accurately you can get the distance. Most of these cameras have a large depth of field, but maybe the SX50 at high zoom might be good enough for your needs.
Another thing to watch out for is distortion in the optics, the apparent size of an object at a given distance may vary across the FOV. Furthermore, the Canon firmware attempts to correct for this in software, so the raw and jpeg may be very different. I would expect this to be more of an issue at wide angles though.
A somewhat related note, it is possible to build a depth map from a series of images at different focus distances. Google e.g.
depth from defocus. These sorts of techniques would likely give you better estimate than the subject distance, and a simple focus bracket could give you the input data.