You can pass the value that is to be selected by default in the value
attribute.
Something like this:
out << "${select(from: stringMinutes, name: attrs.name + '.minute', value: attrs.h)}"
out << "${select(from: stringMinutes, name: attrs.name + '.minute', value: attrs.m )}"