WMA link
UpValues
a + b ^= 2
UpValues[a]
UpValues[b]
You can assign values to UpValues:
UpValues[pi] := {Sin[pi] :> 0}
Sin[pi]