JavaScript (V8), 105 bytes
There must be a shorter way...
s=>`${S="print",~S.indexOf(s)?'eval("co\\156sole.log")':S}("\\${s.charCodeAt().toString(8)+s.slice(1)}")`
There must be a shorter way...
s=>`${S="print",~S.indexOf(s)?'eval("co\\156sole.log")':S}("\\${s.charCodeAt().toString(8)+s.slice(1)}")`