set_trace_func(
  lambda{|event, file, line, id, binding, classname|
    if event == "line" and line == <assignment_linenum>; ...

(´・ω・`)これはあかん。あかんよ