We have two numbers: a and b, and $N$ submatrices (here $N=3$ but it should be generalized): m1, m2, m3. The dimension of two sub matrices m1 and m3 are similar and lower than the dimension of m2. For example: m1 and m3 are $r\times r$, but m2 is $s\times s$ and $r<s$.
We wish to construct a bigger matrix whose dimension is d that is equal to $2r+s+2$. (2 for two numbers) in a such way that the numbers and submatrices be on the diagonal of the bigger matrix (as some blocks on the diagonal same as the below schematic picture).
m1 = m3 = {{1, 0, 0, 0}, {0, 1, 0, -1}, {1, 0, -1, 0}, {1, 1, -1, -1}};
m2 = {{-1, 1, 1, 0, 1, 0},
{1, -1, -1, -1, 1, -1},
{-1, 0, 1, 0, -1, 1},
{-1, -1, 1, 1, 1, 0},
{0, -1, 0, 0, -1, -1},
{0, 0, 1, -1, -1, 1}}
The two numbers are $2$ and $-2$. The desired matrix is $16\times16$.

