I am looking for a way to log a method call, store it in a database, and then at a later time execute it.

I was thinking to serialize the method call with all its arguments, store it, and then retrieve it back, deserialize it and execute it some how.

So, I am looking for a generic method that will allow me to store the method call with its arguments. Something like

```
public String myMethod(String arg1, String[] arg2) {

  logMethodCall(thisMethodName, allMethodArgumentsSerialized)

}

```

and the `logMethodCall` would store the info in a database.

So 

a) any code that will allow me to dynamically loop all arguments of a method and serialize them?

b) any code to get the current method name dynamically?

c) any other idea to accomplish something similar