JavaScript (V8), 5757 52 bytes
-5 bytes thanks to @Arnauld
There was a shorter way
s=>`()=>"\\$s=>`_=>"\\${s.charCodeAt(0).toString(8)}${s+s.substrslice(1)}"`
The smallest representable Octal letter is A
at 101
, which means we don't actually need to pad this.