Hmmm. I don't think there's a way to specify an xblock default which is programmatic...

There are property accessors which implement a default value (using Location object)