Probably overkill, but you got me thinking

if I had to do it, I'd take my right angle laser (happen to have one-construction) and set one beam parallel to the transom and measure off the right angle beam to align the rudder to it.
Or any kind of right-angle jig that could be placed against the transom and used as a benchmark.