Plasma is used for inter-process transfer of data, your my_func is only a single task that will run on a single raylet, so no, no variables will be written to Plasma.
The function itself will be serialized and sent to the raylet worker, and it will execute it.